<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            <?php
            if (isset($title) && $title != '')
                echo $title;
            else
                echo 'SISFO CIC';
            ?>
        </title>
        <!--Baris-baris berikut untuk membuat menu bar dengan jQuery-->
        <link rel="stylesheet" href="<?php echo base_url() ?>css/jquery.ui.all.min.css" type="text/css" title="ui-theme" />
        <link rel="stylesheet" href="<?php echo base_url() ?>css/jqtransform.css" type="text/css" title="ui-theme" />
        <script src="<?php echo base_url() ?>js/jquery-1.5.2.min.js"></script>
        <script src="<?php echo base_url() ?>js/jquery.jqtransform.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.core.min.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.widget.min.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.position.min.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.button.min.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.menu.min.js"></script>
        <script src="<?php echo base_url() ?>js/ui/jquery.ui.menubar.min.js"></script>
        <script type="text/javascript">
            $(function() {
                //find all form with class jqtransform and apply the plugin
                $(".jqtransform").jqTransform();
            });
        </script>
        <script>
		$(function() {
			$("td:has(.menubar)").clone().appendTo("tbody tr:not(:first)");
			
			$("#bar1, .menubar").menubar({
				select: function(event, ui) {
					$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
				}
			});
			
			$(".menubar-icons").menubar({
				menuIcon: true,
				buttons: true,
				select: function(event, ui) {
					$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
				}
			});
		});
	</script>
        <style type="text/css">
	
		#bar1 { margin: 0 0 1em; font-size: 70%;} /* style for this page only */
		.ui-menu { width: 200px; position: absolute; outline: none; z-index: 9999; }
		.ui-menu .ui-icon { float: right; }
		.ui-menu li.ui-state-disabled {
			font-weight: bold;
			padding: .0em .4em;
			margin: .4em 0 .2em;
			line-height: 1.5;
		}
		
		/* menubar styles */
		.ui-menubar .ui-button { float: right; font-weight: normal; border-top-width: 0 !important; border-bottom-width: 0 !important; margin: 0; outline: none; }
		.ui-menubar .ui-menubar-link { border-right: 0px dashed transparent; border-left: 1px dashed transparent; }
		
		.ui-menubar {
			list-style: none;
			margin: 0;
			padding-left: 0;	
		}
		
		.ui-menubar-item {
			float: left;  		
		}
 	</style>
        <?php
            if (isset($script) && $script != '') {
                echo $script;
            }
        ?>
    </head>

    <body>
        <!--Menu bar ditampilkan di paling atas-->
        <ul id="bar1" class="menubar">
		<li>
			<a href="#">Pelatihan</a>
			<ul>
                                <li>
                                    <?php $link1= base_url() . 'admin/term_con'; ?>
                                    <a href="<?php echo $link1;?>">Term</a>
                                </li>
				<li>
                                    <?php $link1= base_url() . 'admin/pelatihan_con'; ?>
                                    <a href="<?php echo $link1;?>">List Pelatihan</a>
                                </li>
                                <li>
                                    <?php $link1= base_url() . 'admin/jadwal_umum_con'; ?>
                                    <a href="<?php echo $link1;?>">Jadwal Pelatihan</a>
                                </li>
                                <li>
                                    <?php $link1= base_url() . 'admin/kelas_con'; ?>
                                    <a href="<?php echo $link1;?>">Kelas Pelatihan</a>
                                </li>
                                <li>
                                    <a href="#">Modul Pelatihan</a>
                                    <ul>
                                        <?php $link= base_url() . 'admin/topik_con/tampil_topik';?>
				        <li><a href="<?php echo $link?>">Topik Silabus</a></li>
                                        <?php $link= base_url() . 'admin/silabus_con';?>
				        <li><a href="<?php echo $link?>">Silabus Pelatihan</a></li>
                                    </ul>
                                </li>
                                <li>
                                    <?php $link= base_url() . 'admin/diskon_con';?>
                                    <a href="<?php echo $link?>">List Diskon</a>
                                    
                                </li>
			</ul>
		</li>
                <li>
                    <a href="#">Pengajar</a>
                    <ul>
                        <li>
                            <?php $link1= base_url() . 'admin/pengajar_con'; ?>
                            <a href="<?php echo $link1;?>">Lihat Pengajar</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/pengajar_con/tambah_pengajar'; ?>
                            <a href="<?php echo $link1;?>">Tambah Pengajar</a>
                        </li>
                    </ul>
		</li>
                <li>
                    <a href="#">Poling</a>
                    <ul>
                        <li>
                            <?php $link1= base_url() . 'admin/poling_con'; ?>
                            <a href="<?php echo $link1;?>">Daftar Poling</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/poling_con/tambah_pertanyaan'; ?>
                            <a href="<?php echo $link1;?>">Buat Poling</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/poling_con/buat_tema'; ?>
                            <a href="<?php echo $link1;?>">Buat Tema Poling</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/poling_con/list_tema'; ?>
                            <a href="<?php echo $link1;?>">List Tema Poling</a>
                        </li>
                    </ul>
		</li>
                <li>
                    <a href="#">User</a>
                    <ul>
                        <li>
                            <?php $link1= base_url() . 'admin/user_con'; ?>
                            <a href="<?php echo $link1;?>">Daftar User</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/user_con/add_user'; ?>
                            <a href="<?php echo $link1;?>">Tambah user</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/role_con'; ?>
                            <a href="<?php echo $link1;?>">List role</a>
                        </li>
                    </ul>
		</li>
                <li>
                    <a href="#">Peserta</a>
                    <ul>
                        <li>
                            <?php $link1= base_url() . 'admin/peserta_con'; ?>
                            <a href="<?php echo $link1;?>">Daftar Peserta</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/peserta_con/tambah_peserta'; ?>
                            <a href="<?php echo $link1;?>">Tambah peserta</a>
                        </li>
                        <li>
                            <?php $link1= base_url() . 'admin/peserta_con/upload_peserta'; ?>
                            <a href="<?php echo $link1;?>">Upload data</a>
                        </li>
                    </ul>
		</li>
	</ul>